home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World Tours: Brazil
/
WorldTours: Brazil.iso
/
mac
/
content
/
main.dir
/
00103_Script_preLoad1
< prev
next >
Wrap
Text File
|
2007-04-22
|
1KB
|
41 lines
property n1,n2,n3,n4,n5,n6
property loading
on beginsprite me
loading = [0,0,0,0,0,0]
n1=preloadNetThing(the moviepath&"chapter.txt")
n2=preloadNetThing(the moviepath&"quiz.txt")
n3=preloadNetThing(the moviepath&"config.txt")
n4=preloadNetThing(the moviepath&"main.png")
n5=preloadNetThing(the moviepath&"quiz.png")
n6=preloadNetThing(the moviepath&"video.png")
end
on exitFrame me
if netDone(n1) then loading[1] = 1
if netDone(n2) then loading[2] = 1
if netDone(n3) then loading[3] = 1
if netDone(n4) then loading[4] = 1
if netDone(n5) then loading[5] = 1
if netDone(n6) then loading[6] = 1
tmp = 0
repeat with i = 1 to 6
tmp = tmp + loading[i]
end repeat
sprite(14).width = tmp * 124 / 6
if netDone(n1) and netDone(n2) and netDone(n3) and netDone(n4) and netDone(n5) and netDone(n6) then
importFileInto member(1, "external files"), the moviepath & "chapter.txt"
importFileInto member(2, "external files"), the moviepath & "quiz.txt"
importFileInto member(3, "external files"), the moviepath & "config.txt"
importFileInto member(7, "internal"), the moviepath & "main.png"
importFileInto member(8, "internal"), the moviepath & "video.png"
importFileInto member(9, "internal"), the moviepath & "quiz.png"
go the frame +1
else
go the frame
end if
end